home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / whttpd14.zip / CGI-DOS / DEMOINDX.BAT < prev    next >
DOS Batch File  |  1994-04-28  |  850b  |  36 lines

  1. rem
  2. rem ****************
  3. rem * DEMOINDX.BAT *
  4. rem ****************
  5. rem
  6. rem Offers an ISINDEX document if no query arguments, 
  7. rem else reports on the "results" of the query.
  8. rem
  9. rem Bob Denny <rdenny@netcom.com>
  10. rem 28-Apr-94
  11. rem
  12. set of=%output_file%
  13. if NOT %#==0 goto shoquery
  14. rem
  15. rem No query, signal server to do redirect to ISINDEX demo doc.
  16. rem
  17. echo Location: /demo/isindex.htm > %of%
  18. echo. >> %of%
  19. goto done
  20. rem
  21. rem There were query arguments. Generate plain text report (COMMAND.COM: BAH!)
  22. rem
  23. :shoquery
  24. echo Content-type:text/plain > %of%
  25. echo. >> %of%
  26. echo Here is what the server would have fed to the back-end program: >> %of%
  27. echo. >> %of%
  28. echo Number of query arguments = %# >> %of%
  29. echo. >> %of%
  30. echo Arguments: >> %of%
  31. echo %1 %2 %3 %4 %5 %6 %7 %8 %9 >> %of%
  32. :done
  33. echo -- end of report -- >> %of%
  34.  
  35.  
  36.